/*
 *  DialogNode.h
 *  SquirrelAdven
 *
 *  Created by Wen Xu on 3/7/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#include <string>
#include <vector>

using namespace std;

class DialogNode {
protected:
	int dialogID;
	int dialogType; // 0: non-question, 1: question, 2: option
	string dialogContent;
	vector<DialogNode *> children;
	int points;
	
public:
	DialogNode();
	~DialogNode();
	
	// setter
	void setDialogID(int ID);
	void setDialogType(int type);
	void setDialogContent(string content);
	void addChild(DialogNode * child);
	void setDialogPoints(int p);
	
	
	// getter
	int getDialogID();
	int getDialogType();
	string getDialogContent();
	int getChildrenCount();
	DialogNode * getChildByIndex(int index);
	int getDialogPoints();
	
	// print
	void printData();
	
};